

#ifndef __xiong_reactor
#define __xiong_reactor

#include "Poco/Net/SocketReactor.h"
#include "Poco/Net/Socket.h"

#include "ReactorRuner.h"



using Poco::Net::SocketReactor;
using Poco::Net::Socket;
using Poco::FastMutex;




class Reactor:public SocketReactor
{

public:
    Reactor()
    {

    }

    void setRuner(ReactorRuner *runer)
    {
        _runer = runer;
    }
    

    void onIdle();
    void onBusy();
    void onTimeout();
        
    
private:
    ReactorRuner *_runer;

};

#endif
